package gas.backend.image;

import java.awt.*;
import java.awt.image.*;
import java.io.*;

import javax.imageio.*;

public class image {
	private BufferedImage data;
	
	public image(String filename) throws IOException {
		File file = new File(filename);
        data = ImageIO.read(file);
	}
	
	public void savetofile(String filename) throws IOException {
		File file = new File(filename);
		ImageIO.write(data, "JPG", file);
	}
	
}
